package com.liu;

import com.liu.domain.VoteLimit;
import com.liu.domain.student;
import com.liu.repository.RoomRepository;
import com.liu.repository.StuRepository;
import com.liu.repository.VoteLimitRepository;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

import java.util.List;

/**
 * Created by liu on 17-9-19.
 */
@RunWith(SpringRunner.class)
@SpringBootTest
public class test {

    @Autowired
    private VoteLimitRepository voteLimitRepository;

    @Autowired
    private RoomRepository roomRepository;

    @Autowired
    private StuRepository stuRepository;

    @Test
    public void ete() {
        System.out.println(Long.MAX_VALUE);
    }

    @Test
    public void test() {
        VoteLimit voteLimit = voteLimitRepository.isVoted("20140202612", 1);
        System.out.println(voteLimit);
    }


  /*  @Test
    public void insert(){
        roomRepository.save();

    }*/

    @Test
    public void testStuId() {
        List<String> clas = stuRepository.getCla();
        for (String s : clas) {
            System.out.println(s);
        }
    }
}
